//
//  ViewController.m
//  ZGQActionSheetViewDemo
//
//  Created by 甄冠卿 on 2017/10/17.
//  Copyright © 2017年 Zhen.GQ. All rights reserved.
//

#import "ViewController.h"
#import "ZGQActionSheetView/ZGQActionSheetView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)ShowAction:(id)sender {
    //选项数组
    NSArray *optionArray = @[@"选项1",@"选项2",@"选项3"];
    
    ZGQActionSheetView *sheetView = [[ZGQActionSheetView alloc] initWithOptions:optionArray Completion:^(ZGQActionSheetView *sheetView, NSInteger index) {
        NSLog(@"%@",optionArray[index]);
    } cancel:^{
        NSLog(@"取消");
    }];
    [sheetView show];
    
}


@end
